@extends('admin.home.main')

@section('body')
    <section id="main-content">

        <section class="wrapper">
            <h3><a href="/admin/activity/list">活动报名</a>>><a
                        href="/admin/activity/modify/{{$activityInfo->id}}">{{$activityInfo->name}}</a>>>报名列表</h3>
            <hr>
            <!-- row -->
            <div class="row mt">
                <div class="col-md-12">
                    <div class="content-panel">
                        <table class="table table-striped table-advance table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th width="15%">会员昵称</th>
                                <th>联系电话</th>
                                <th>宝宝信息</th>
                            </tr>
                            </thead>
                            <tbody>
                                @if(!empty($signList))
                                    @foreach($signList as $stm=>$sts)
                                        <tr>
                                            <td>{{$stm+=1}}</td>
                                            <td>{{$sts->nick}}</td>
                                            <td>
                                                {{$sts->telephone}}
                                            </td>
                                            <td>
                                                @foreach($sts->babyList as $btm=>$bst)
                                                    <p>姓名：{{$bst->baby_nick}} 年龄：{{$bst->baby_age}}岁</p>
                                                @endforeach
                                            </td>
                                        </tr>
                                    @endforeach
                                @endif
                            </tbody>
                        </table>
                    </div>
                    <!-- /content-panel -->

                </div>
                <!-- /col-md-12 -->
            </div>
            <!-- /row -->
        </section>
    </section>

@endsection